﻿<%@ Page Title="" Language="C#" MasterPageFile="Admin.master" %>
<script runat="server">
    private int Item_Id = 0;
    private Menubar menu;
    protected void Page_Load(object sender, EventArgs e)
    {
        Item_Id = Utils.GetQueryString("id", 0);
        menu = new Menubar(Item_Id);
    }
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript">
        /* 输入法激活 */
        if(GetLang()<10)
            bedit_allow = "Item_Title:Item_Introduction";
        $(document).ready(function () {
            $("#Item_position").val(<%=menu.Item_Position %>)
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"><%=Lang.Show("MenuCenter")%> -<%=Lang.Show("ItemAdd")%></asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">

<table class="inputs">
    <tr>
        <td><%=Lang.Show("Title")%> :</td>
        <td><input type="text" id="Item_Title" name="Item_Title" maxlength="75" value="<%=menu.Item_Name %>"  /></td>
        <td><div id="Validate-Item_Title"></div></td>
    </tr>
    <tr>
        <td><%=Lang.Show("Link")%> :</td>
        <td><input type="text" id="Item_Url" class="en" value="<%=menu.Item_Url %>"  /></td>
        <td></td>
    </tr>
    <tr>
        <td><%=Lang.Show("position")%> :</td>
        <td><select id="Item_position"><option value="1"><%=Lang.Show("Right") %></option><option value="2"><%=Lang.Show("Left") %></option></select></td>
        <td></td>
    </tr>
    <tr>
        <td><%=Lang.Show("Item_Introduction")%> :</td>
        <td><textarea id="Item_Introduction" name="Item_Introduction"  rows="3"><%=menu.Item_Introduction %></textarea></td>
        <td></td>
    </tr>
    <tr>
        <td><%=Lang.Show("Order")%> :</td>
        <td><input type="text" id="Orders" class="en"  value="<%=menu.Orders %>" maxlength="3"  /></td>
        <td><div id="Validate-Orders"></div></td>
    </tr>
    <tr>
        <td>Object :</td>
        <td><input type="text" id="Object_Typ" class="en"  value="<%=menu.Object_Typ %>" maxlength="3"  /></td>
        <td><div id="Validate-Object_Typ"></div></td>
    </tr>
    <tr>
        <td></td>
        <td><button onclick="MenuAddEdit(<%=Item_Id %>)" class="button"><%=Lang.Show("Submit") %></button></td>
        <td></td>
    </tr>
</table>
</asp:Content>

